<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Ban User</title>
		<logic:present name="listid" scope="session">
			<link href="form/login.css" rel="stylesheet" type="text/css">
		</logic:present>
		<logic:notPresent name="listid" scope="session">
			<link href="login.css" rel="stylesheet" type="text/css">
		</logic:notPresent>
	</head>
	<body>
		<logic:notPresent name="userid" scope="session">
			<logic:redirect forward="login_error"></logic:redirect>
		</logic:notPresent>
		<logic:notPresent name="admin" scope="session">
			<logic:redirect page="/not_admin.jsp"></logic:redirect>
		</logic:notPresent>
		<% 
			request.getSession().setAttribute("banid", Integer.parseInt(request.getParameter("banid")));
		 %>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
			</div>
			<div class="content">
						<h1>Ban User</h1>
		                <p>
							<html:form action="/ban">
								length : <html:select property="day">
									<html:option value="forever">forever</html:option>
									<html:option value="1">+1 day</html:option>
									<html:option value="10">+10 days</html:option>
									<html:option value="30">+1 month</html:option>
									<html:option value="365">+1 year</html:option>
								</html:select><html:errors property="day"/><br/>
								<html:submit/><html:cancel/>
							</html:form>
						</p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html>

